package Demo;

import java.text.SimpleDateFormat;
import java.util.Date;

public class simpledateformat {
    public static void main(String[] args) throws Exception {
        Date date=new Date();
        SimpleDateFormat time=new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
        System.out.println(date);
        System.out.println(time.format(date));;
        String str="2020-04-01 15:38:23";
        Date d=time.parse(str);
        System.out.println(d);
        String str1="111";
       Integer a=Integer.parseInt(str1);
        System.out.println(a);


    }
}
